package net.xfok.chemical;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Spinner;

public class List extends Activity{
    /** Called when the activity is first created. */
	private static int LEN=10;
	private ListView mlist;
	private ArrayAdapter<String> adapter;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.list);
        mlist=(ListView)findViewById(R.id.list);
        setViews();
    }
    
    private void setViews(){      	
    	adapter=new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1);
    	for(int i=1;i<LEN;i++){
    		adapter.add(i+"."+"第 "+i+" 条测试记录");
    	}
    	mlist.setAdapter(adapter);
    }
    
   
}